<div class="path">
    <i class="iconfont icon-shouye1"></i>
    <a href="{url('admin/default/welcome')}">开始</a> / 
    <a href="{url('database/index')}">数据备份</a>
</div>
<div class="table-head fn-clear">
    <div class="fn-l">
        <a href="{url('database/index')}" class="button">
            <i class="iconfont icon-liebiao"></i> 备份列表
        </a>
        <a href="{url('database/tables')}" class="button">
            <i class="iconfont icon-liebiao1"></i> 数据库列表
        </a>
        <span class="button button-blue tip" >数据库操作 <i class="iconfont icon-xiangxia2"></i> </span>
    </div>
</div>
<div class="select-list">
    <ul class="ztree">
        <li><a href="{url('database/backupdb')}">数据库备份</a></li>
        <li><a href="{url('database/optimizeddb')}">数据库优化</a></li>
        <li><a href="{url('database/repairdb')}">数据库修复</a></li>
    </ul>
</div>
<div class="m10">
<table class="table table-border">
<thead >
	<tr>
		<th>备份文件名称</th>
		<th class="w150 fn-tac">备份时间</th>
		<th class="w120 fn-tac">管理操作</th>
	</tr>
</thead>
<tbody>
{foreach $list as $rs}
<tr>
	<td>{$rs[name]}</td>
	<td class="w150 fn-tac">{date('Y-m-d H:i:s',$rs[times])}</td>
	<td class="w120 fn-tac">
		<a title="恢复" class="button button-green button-small" href="{url('database/importdb',array('name'=>$rs[name]))}">
            <i class="iconfont icon-yunshangchuan"></i>
        </a>
		<a title="下载" class="button button-blue button-small" href="{url('database/downdb',array('name'=>$rs[name]))}">
            <i class="iconfont icon-xiazai"></i>
        </a>
        <a title="删除" href="javascript:void(0);" url="{url('database/delectdb',array('name'=>$rs[name],'act'=>'del'))}" class="del button button-yellow button-small">
            <i class="iconfont icon-shanchu"></i> 
        </a>
	</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
<script type="text/javascript">
Do('base','dialog','tip','tree',function(){
	$('.del').click(function(){$(this).del();});
	$(".tip").powerFloat({target: $(".select-list")});
	$(".ztree").treeview({collapsed: true,animated: "medium",control:"#sidetreechannel",persist: "location"});
})
</script>